package com.ld.wms.business.user.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @author wangfeng
 * @since 2024-04-12
 */
@Data
@TableName("user_account")
@Schema(description = "用户表")
public class UserAccountModel implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "账户名")
    private String accountName;

    @Schema(description = "头像")
    private String headImage;

    @Schema(description = "真实姓名")
    private String realName;

    @Schema(description = "0:女，1:男")
    private Integer sex;

    @Schema(description = "密码")
    private String password;

    @Schema(description = "密码盐")
    private String salt;

    @Schema(description = "手机号")
    private String mobile;

    @Schema(description = "电子邮箱")
    private String email;

    @Schema(description = "状态：具体看代码枚举")
    private Integer status;

    @Schema(description = "生日")
    private Date birthday;

    @Schema(description = "最后登录时间")
    private Date lastLoginTime;

    @Schema(description = "是否删除:0否，1:是")
    private Integer delFlag;

    @Schema(description = "版本控制，非必用")
    private Integer version;

    @Schema(description = "创建人id")
    private Long createBy;

    @Schema(description = "创建时间")
    private Date createTime;

    @Schema(description = "更新人")
    private Long updateBy;

    @Schema(description = "更新时间")
    private Date updateTime;


    public static final String ID = "id";

    public static final String ACCOUNT_NAME = "account_name";

    public static final String HEAD_IMAGE = "head_image";

    public static final String REAL_NAME = "real_name";

    public static final String SEX = "sex";

    public static final String PASSWORD = "password";

    public static final String SALT = "salt";

    public static final String MOBILE = "mobile";

    public static final String EMAIL = "email";

    public static final String STATUS = "status";

    public static final String BIRTHDAY = "birthday";

    public static final String LASH_LOGIN_TIME = "lash_login_time";

    public static final String DEL_FLAG = "del_flag";

    public static final String VERSION = "version";

    public static final String CREATE_BY = "create_by";

    public static final String CREATE_TIME = "create_time";

    public static final String UPDATE_BY = "update_by";

    public static final String UPDATE_TIME = "update_time";

}
